﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using RTMBindings.Responses;

namespace RTMBindings
{
    public class RTMTimelineBindings : RTMBindings
    {
        private const string CreateTimelineUrl = UriBase + "rtm.timelines.create&api_key={0}&auth_token={1}";

        private RTMTimelineBindings() { }

        public static void CreateTimeline(string apiKey, string secret, RTMToken token, Action<RTMTimelineResponse> callback, Action<Exception> failedCallback)
        {
            var uri = string.Format(CreateTimelineUrl, apiKey, token.Token);

            RequestString(secret, new UriBuilder(uri), callback, failedCallback);
        }
    }
}
